package com.leyou.item.service;

import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SkuDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;

import java.util.List;

public interface GoodsService  {
    PageDTO<SpuDTO> pageQuery(Integer page, Integer rows, Long id, Long cid, Long bid, Boolean saleable);

    void modifySaleable(Long id, Boolean saleable);

    void addGoods(SpuDTO spuDTO);

    SpuDTO queryGoodsById(Long id);

    void updateGoods(SpuDTO spuDTO);

    SpuDetailDTO querySpuDetailById(Long id);

    List<SkuDTO> listSkuBySpuID(Long spuId);

    SpuDTO querySpuById(Long id);

    List<SpecParamDTO> listSpecParam(Long id, Boolean searching);
}
